package com.chixing.day09.Enum;

/**
 * 可列举的有限的类对象
 */
//设计一个季节类Season，只能实例化4个对象 （春夏秋冬季节）
public class Season {
    //枚举的本质:
    public static final Season SPRING = new Season("春");
    public static final Season SUMMER = new Season("夏");
    public static final Season AUTUMN = new Season("秋");
    public static final Season WINNTER = new Season("冬");

    private String name;

    public Season() {
    }

    public Season(String name) {
        this.name = name;
    }
}
